#define _CRT_SECURE_NO_WARNINCS
#include<stdio.h>
#include<stdlib.h>
#include"stack.h"

void test1()
{
	Stack st;
	StackInit(&st);
	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	while (st.top)
	{
		printf("%d->", StackTop(&st));
		StackPop(&st);
	}
	printf("\n");
	StackDestroy(&st);
}
int main()
{
	test1();
	return 0;
}